package com.hongxun.design.utils.wifiutil;

import android.app.Activity;

import com.hongxun.design.MyApp;
import com.hongxun.design.object_properties.SSID_Util;

/**
 * Created by zerdoor_pc on 2016/7/21.
 */
public class WiFiUtil {
    /**
     * 创建wifi热点
     */
    public static String creatWifiHost(Activity activity) {
        String SSID = SSID_Util.getSSID();//得到创建的wifi的SSID
        WifiHostUtil.getInstance(activity).startWifiHost(SSID);//创建wifi热点
        MyApp.isServer=true;
        return   SSID;
    }
    /**
     * 热点搜索
     */
    public static void searchHost(Activity activity) {
        WifiHostSearch.getInstance(activity).clear();
        WifiHostSearch.getInstance(activity).scanWifiHot();

    }
}
